<!Doctype html>  
<html lang="en">  
	<head>  
	<meta charset="UTF-8">  
		<title>窗口大小获取</title>  
	</head>  
	<body>  
		<script>
			document.body.innerHTML = 'outerWidth:' + window.outerWidth + ';outerHeight:' + window.outerHeight + '</br>' + 'innerWidth:' + window.innerWidth + ';innerHeight:' + window.innerHeight;
		</script>
	</body>  
</html> 